Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specify the webdriver command to open terms of service and privacy po… #610

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

cbiesinger
Copy link
Collaborator

@cbiesinger cbiesinger commented May 30, 2024

…licy

Fixes #627


Preview | Diff

@cbiesinger cbiesinger requested a review from npm1 May 30, 2024 21:02
cbiesinger added a commit to cbiesinger/selenium that referenced this pull request Jun 3, 2024
This builds on commit 7ad44ee

The specification for clickdialogbutton is here:
https://fedidcg.github.io/FedCM/#webdriver-clickdialogbutton

The version that takes an index is specified here:
w3c-fedid/FedCM#610

Bug SeleniumHQ#12088
Copy link
Collaborator

@npm1 npm1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

1. If |dialogButton| is "`TermsOfService`" or "`PrivacyPolicy`":
1. If no FedCM dialog is currently open or the dialog is not a dialog that
lets a user select an account, return a [=error|WebDriver error=] with
[=error code=] [=no such alert=].
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this the right error code?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's the code I've been using for all the webdriver commands. It seemed close enough and I wanted to avoid defining a new error code.

spec/index.bs Outdated Show resolved Hide resolved
spec/index.bs Outdated Show resolved Hide resolved
Copy link
Collaborator

@samuelgoto samuelgoto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM++

cbiesinger added a commit to cbiesinger/selenium that referenced this pull request Jun 4, 2024
This builds on commit 7ad44ee

The specification for clickdialogbutton is here:
https://fedidcg.github.io/FedCM/#webdriver-clickdialogbutton

The version that takes an index is specified here:
w3c-fedid/FedCM#610

Bug SeleniumHQ#12088
cbiesinger added a commit to cbiesinger/selenium that referenced this pull request Jun 4, 2024
This builds on commit 7ad44ee

The specification for clickdialogbutton is here:
https://fedidcg.github.io/FedCM/#webdriver-clickdialogbutton

The version that takes an index is specified here:
w3c-fedid/FedCM#610

Bug SeleniumHQ#12088
cbiesinger added a commit to cbiesinger/selenium that referenced this pull request Jun 4, 2024
This builds on commit 7ad44ee

The specification for clickdialogbutton is here:
https://fedidcg.github.io/FedCM/#webdriver-clickdialogbutton

The version that takes an index is specified here:
w3c-fedid/FedCM#610

Bug SeleniumHQ#12088
cbiesinger added a commit to cbiesinger/selenium that referenced this pull request Jun 5, 2024
This builds on commit 7ad44ee

The specification for clickdialogbutton is here:
https://fedidcg.github.io/FedCM/#webdriver-clickdialogbutton

The version that takes an index is specified here:
w3c-fedid/FedCM#610

Bug SeleniumHQ#12088
Copy link
Collaborator

@npm1 npm1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure what was the recent change but lgtm

@cbiesinger
Copy link
Collaborator Author

The change was reformatting and also changing the error to invalid selector (from invalid argument) here:

    1. If the account at |index| does not have a terms of service or privacy
        policy URL, either because none was provided in the [=client metadata
        endpoint=] or because [=compute the connection status=] for the account
        returned [=compute the connection status/connected=], return a
        [=error|WebDriver error=] with [=error code=] [=invalid selector=].

@cbiesinger
Copy link
Collaborator Author

@bvandersloot-mozilla could you take a look?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add webdriver command to open PP/TOS
3 participants